​​Uninstall: Apple Software Update

Target OS: Windows
Purpose: This software is often installed along with iTunes or other apple software and is not needed as most updates will be handled by BigFix/TEM.
Note: iTunes itself will check for updates periodically unless told not to, even if Apple Software Update is not installed.
 

Description:

This fixlet uninstalls Apple Software Update
 

Relevance 1:

(name of it = "WinXP" OR name of it = "WinXP-2003" OR (name of it = "WinVista" AND product type of it = nt workstation product type AND NOT x64 of it) OR (name of it = "WinVista" AND product type of it = nt workstation product type AND x64 of it) OR (name of it = "Win7" AND NOT x64 of it) OR (name of it = "Win7" AND x64 of it)) of operating system
 
 

Relevance 2:

// Check for Apple Software Update on system
Exists key whose (value "displayname" of it as string = "Apple Software Update" of it and value "uninstallstring" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry
 

Action:

Wait msiexec.exe /X {name of key whose (value "displayname" of it as string = "Apple Software Update" of it and value "uninstallstring" of it as string as lowercase contains "msiexec") of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry} /qn